{# @deprecated tag:v6.8.0 - Use `mt-button` instead. #}
{% block sw_button %}
<mt-button
    v-if="!deprecated"
    v-bind="$attrs"
    variant="secondary"
    @click="onClick"
>
    <slot></slot>
</mt-button>
{% endblock %}

{# Deprecated component #}
<sw-button-deprecated
    v-else
    v-bind="$attrs"
    :router-link="routerLink"
>
    <slot></slot>
</sw-button-deprecated>
